-- GENERATED SPELL FOR [Phantom Hound] --


function spell0_17067(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(29574,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17067', 15000, 1)
end

function spell1_17067(pUnit, Event) --@Summon Phantom Hound Visual,Self--
pUnit:FullCastSpellOnTarget(29541,pUnit)
pUnit:RegisterEvent('Sorts_17067', 690, 1)
end

function Sorts_17067(pUnit, Event)
local choix_sorts_17067 = math.random(0, 1)
if choix_sorts_17067 == 0 then
pUnit:RegisterEvent('spell0_17067', 1, 1)
end
if choix_sorts_17067 == 1 then
pUnit:RegisterEvent('spell1_17067', 1, 1)
end
end

function mob17067_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17067', math.random(1500, 3000), 1)
end

function mob17067_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17067_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17067_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17067, 1, 'mob17067_Action')
RegisterUnitEvent(17067, 2, 'mob17067_Leave')
RegisterUnitEvent(17067, 3, 'mob17067_Kill')
RegisterUnitEvent(17067, 4, 'mob17067_Die')
